package com.zhiche.lisa.bms.dao.mapper.quote;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.zhiche.lisa.bms.dao.model.quote.QuoteDtl;
import com.zhiche.lisa.bms.pojo.bo.quote.FleetQuotation;
import com.zhiche.lisa.bms.pojo.vo.quote.QuoteExpandVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 报价单明细 Mapper 接口
 * </p>
 *
 * @author liuanshun
 * @since 2018-10-22
 */
public interface QuoteDtlMapper extends BaseMapper<QuoteDtl> {

	/**
	 * 无token获取报价单明细
	 *
	 * @param ew
	 * @return
	 */
	List<QuoteDtl> selectListNoTenant(@Param("ew") Wrapper<QuoteDtl> ew);

	/**
	 * 查询报价单（报价单明细+报价单头）
	 * @param ew
	 * @return
	 */
	List<FleetQuotation> selectFleetQuotation(@Param("ew") Wrapper<FleetQuotation> ew);

	/**
	 * 根据主表数据获取明细数据
	 *
	 * @param quoteId
	 * @return
	 */
	List<QuoteExpandVO> getQuoteExpandByQuoteId(@Param("quoteId") Long quoteId);

	/**
	 * 根据主表数据获取明细数据
	 *
	 * @param quoteIdList
	 * @return
	 */
	List<QuoteExpandVO> getQuoteExpandByQuoteIdList(@Param("quoteIdList") List<Long> quoteIdList);
}
